/*
 *  Filename: rtc.h
 *  Function: Header for rtc.c
 *  Created: 2017-06-29
 *  Version: 1.0
 *  Author: Bin
 */

#ifndef RTC_H
#define RTC_H

/*-------- Types --------*/
typedef struct {
    uint32_t year, mon, day;
    uint32_t hour, min, sec;
    uint32_t wday;
} tm;

/*-------- Exported functions --------*/
extern void RTC_Init(void);
extern void RTC_Set(tm *p);
extern void RTC_Get(tm *p);

#endif
